package com.sdgakj.study.thread;

/**
 * @Author: Du Ronghong
 * @Description: 继承Thread实现
 * @Date: Created in 17:21 2018/8/28
 * @Modified By:
 */
public class MyThread1 extends Thread {

    private String name;

    MyThread1(String name) {
        super(name);
    }

    @Override
    public void run() {
        for (int i = 0; i < 5; i++) {
            System.out.println("name=" + Thread.currentThread().getName() + ",x=" + i);
        }
    }
}
